package com.kyxx.topics.net;

import com.lzy.okgo.callback.AbsCallback;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by Administrator on 2016/10/19.
 */
public abstract class OkGoCallBack extends AbsCallback<Object> {
    @Override
    public void onSuccess(Object t, Call call, Response response) {
        success(t, call, response);
    }

    @Override
    public Object convertSuccess(Response response) throws Exception {
        return convertsuccess(response);
    }

    public abstract void success(Object t, Call call, Response response);

    public abstract Object convertsuccess(Response response);
}
